<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>


<form action="/blog/Edit">
<label>标题</label>
<textarea rows="1" cols="20" name="title"></textarea><br>
<label>正文</label>
<textarea rows="8" cols="80" name="content"></textarea><br>
<button id="send">发布</button>
</form>
<a href="index.jsp">返回</a>
<label><%if(request.getSession().getAttribute("article")!=null){
	out.println("恭喜你，发布成功！");
	request.getSession().removeAttribute("article");
}
%></label>

</body>
</html>
<!-- <script>
	function sendChat() {
		if($("#title").val()==""||
			$("#article").val("")){
			
		}
	    $.ajax({
	        url: "/blog/Edit",
	        data: { title: $("#title").text(), article: $("#article").val()},
	        type: "post",
	        datatype: "html"
	       
	    });
	    $("#article").val("");
	    $("#title").val("");
	} 
</script> -->